package com.ningxun.pagent.bus.domain.wechatuser;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ningxun.pagent.common.annotation.Excel;

/**
 * 青年管理模块对象 base_wechat_user
 * 
 * @author pagent
 * @date 2025-07-09
 */
@TableName("base_wechat_user")
public class BaseWechatUser {
    private static final long serialVersionUID = 1L;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String openId;

    @TableId(value = "user_id" ,type= IdType.AUTO)
    /** 用户ID */
    private Long userId;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nikeName;

    /** 头像URL */
    private String avatar;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phoneNumber;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 用户状态：0-禁用 1-正常 */
    @Excel(name = "用户状态：0-禁用 1-正常")
    private Long userStatus;

    /** 学历  走字典 */
    @Excel(name = "学历  走字典")
    private String education;

    /** 职业状态  走字典 */
    @Excel(name = "职业状态  走字典")
    private String employmentStatus;

    /** 所在地 */
    @Excel(name = "所在地")
    private String location;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    private Date updateTime;

    private int gender;
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setNikeName(String nikeName) 
    {
        this.nikeName = nikeName;
    }

    public String getNikeName() 
    {
        return nikeName;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }




    public void setUserStatus(Long userStatus) 
    {
        this.userStatus = userStatus;
    }

    public Long getUserStatus() 
    {
        return userStatus;
    }

    public void setEducation(String education) 
    {
        this.education = education;
    }

    public String getEducation() 
    {
        return education;
    }

    public void setEmploymentStatus(String employmentStatus) 
    {
        this.employmentStatus = employmentStatus;
    }

    public String getEmploymentStatus() 
    {
        return employmentStatus;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("openId", getOpenId())
            .append("userId", getUserId())
            .append("nikeName", getNikeName())
            .append("avatar", getAvatar())
            .append("phoneNumber", getPhoneNumber())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("birthday", getBirthday())
            .append("userStatus", getUserStatus())
            .append("education", getEducation())
            .append("employmentStatus", getEmploymentStatus())
            .append("location", getLocation())
            .toString();
    }
}
